package xxx;

public class Student extends Taxes{
    public Lab[]lablist = new Lab[3];
    final String name;
    double salary;
    //private Lab[] lablist;

    public Student(String name){
        this.name=name;
    }
    public void setSalary(double salary){
        this. salary=this.salary + salary;
    }//将每周薪水求和
    public void setlablist(Lab[] lablist){
        this.lablist=lablist;
    }
    public double RankSalary(String rank){
        return switch(rank){
         case"优"->500;
         case"及格"->200;
         default->0;
        };
    }
}
